Skip to main content

P1: Updating the Document Site

The document site is maintained via GitHUB.

https://github.com/ThoughtLabs-NZ/process-documents.git

Changes made either to the Repo, or by pushing a new commit will automatically update CloudFlare pages to build and serve a new site update.

The current Pages URL is:

https://process-documents.pages.dev/

Process for sushing the site:

  1. Clone a local copy of the site from the repo above:
   git clone https://github.com/ThoughtLabs-NZ/process-documents.git website
  1. The change into the website directory
  2. Building the site requires the necessary NPM modules to be installed:
   bash
cd website
npm install
  1. This will then installed the required node modules.
  2. Once installed, you can build and serve the site using:
   npm run build
and then...
npm run serve
  1. At anytime you can service the site using:
npm start
  1. The site will be available on http://localhost:3000
  2. All changes to the markdown files can be made using a Markdown editor
  3. For the purposes of simplicity - Obsidian can be used to edit and maintain these files.
  4. Changes to the local site can be uploaded (pushed) using a commit:
git add .
git commit -m "Updated Visitor Management"
git push -u origin main
  1. These changes will then be added as a new commit, and CloudFlare will rebuild the site.